<a title="Close" class="boxy-close" href="javascript:void(0)" onclick="Boxy.get(this).hide();"></a>
<div>
    <form method="POST" action='<?php echo $this->baseUrl() ?>/service/add-photo' enctype="multipart/form-data">
        <div>
            <div class='add-photo-label'>Photo: </div>
            <input type="file" name="photo" id='name' style='padding: 7px 20px;'/>
        </div>
        <input type='hidden' name='gi_id' id='gi_id' value='<?php echo $this->gi_id ?>'/>
        <input type='hidden' name='ref_no' id='ref_no' value='<?php echo $this->ref_no ?>'/>
        <div>
            <div class='add-photo-label'>Description:</div>
            <textarea name='description' rows="5" style='width: 70%'></textarea>
        </div>
        <div>
            <div class='add-photo-label'>Folder:</div>
            <?php if ($this->folders->count() > 0): ?>
                <select name='folder' style='width: 70%;'>
                    <?php foreach ($this->folders as $folder) : ?>
                        <option value='<?php echo $folder->id ?>'><?php echo $folder->name ?></option>
                    <?php endforeach; ?>
                </select>
            <?php else: ?>
                <div class='add-photo-label'>There's not any folder</div>
            <?php endif; ?>
        </div>
        <div>
            <input type='submit' class="submit" value='Add' style='margin-top: 10px'/>
        </div>
    </form>
</div>